/*
 * ConstantesGenerales.java
 *
 * Created on 18 de julio de 2005, 12:29 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.imagen.base.constantes;

import java.util.ResourceBundle;

/**
 *
 * @author andresoc
 */

public class ConstantesGenerales {
    
    protected static ConstantesGenerales instance;
    public static String JNDINAME_IMAGENSESSION = "ejb/ImagenSessionBean";
    public static String PATH_FISICO_COPIA_IMAGEN;
    public static int NUMERO_MAXIMO_IMAGENES;
    public static int NUMERO_IMAGENES_ELIMINAR;
    
    protected ConstantesGenerales() {
        ResourceBundle resourceBundle = ResourceBundle.getBundle("ParametrosImagenSetup");
        this.PATH_FISICO_COPIA_IMAGEN = resourceBundle.getString("pathFisicoCopiaImagen");
        this.NUMERO_MAXIMO_IMAGENES = Integer.valueOf(resourceBundle.getString("numeroMaximoImagenes")).intValue();
        this.NUMERO_IMAGENES_ELIMINAR = Integer.valueOf(resourceBundle.getString("numeroImagenesEliminar")).intValue();
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}